package com.dts.servlet;

import jakarta.servlet.ServletException;
import jakarta.servlet.annotation.WebServlet;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet(name = "send", urlPatterns = "/send")
public class SendServlet extends HttpServlet {

    public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
//       response.sendRedirect("aa.jsp");//重定向
        this.getServletContext().getRequestDispatcher("/aa.jsp").forward(request, response);//转发
    }
}
